/**
 * Created by xie on 2018/4/12.
 */
angular.module('service.knowledge', [
    'ngResource',
    'ngCookies'
])

    .service('KnowledgeService', ['$http', '$resource', '$cookies',
        function ($http, $resource, $cookies) {


            this.getPlantAll = function (success,error) {
                var resource = $resource(plantUrl + "plant");
                return resource.query({},success,error)

            }


            this.getPlantById= function (plantid,success,error) {
                var resource = $resource(plantUrl + "plant/"+plantid);
                return resource.get({},success,error)
            }



        }])